<include file="Public/header" />
<title>添加账册</title>
</head>
<body>
<div class="pd-20">
<form class="" name="form" id="form" action="__URL__/add_section/" method="get">
	<table class="table table-border table-bordered table-bg">
		<tbody>
		<tbody>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">单号</td>
				<td class="text-l" width="35%">
					<input type="hidden" class="input-text" value="MG<{:date('ymd',time())}><{$serial_number}>" placeholder="订单编号" id="order_no" name="order_no">
					<input type="text" class="input-text" value="MG<{:date('ymd',time())}><{$serial_number}>" placeholder="订单编号"  disabled="disabled">
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">申请部门：</td>
				<td class="text-l" style="width:35%;">
					<input type="text" class="input-text" name="section_no" value="" placeholder="申请部门"  >
				</td>				
			</tr>
			<tr class="text-c">
					<td width="15%" class="text-r" style="background-color:#f5f5f5">制单人：</td>
					<td class="text-l">
						<input type="text" class="input-text" name="people_make_no" value="" placeholder="制单人"  >
						
					</td>
					<td width="15%" class="text-r" style="background-color:#f5f5f5">申请人：</td>
					<td class="text-l">
						<input type="text" class="input-text" name="people_purchasing_no" value="" placeholder="申请人"  >
						
					</td>						
			</tr>
		</tbody>
		</tbody>
	</table>
	<input type="button" class="btn btn-primary radius mt" id="b_add" value="添加">
</form>
</div>
<script type="text/javascript">
    $(function(){
		/*保存计划入库单数据*/
        $("#b_add").click(function(){
			$.ajax({
                type: 'POST',
                data: $("#form").serialize(),
                url: "<{:U('add_configs')}>",
                success:function(data){
                    layer.msg(data.info,function(){
						if(data.status==0){
							return false;
						}
						parent.window.location.href =parent.window.location.href;
					});
                }
            })
            
        });

    })
</script>
</body>
</html>